package com.jt.pojo;


import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import lombok.Data;
import lombok.experimental.Accessors;

@TableName("tb_order")
@Data
@Accessors(chain = true)
public class Order extends BasePojo {
    @TableField(exist = false)    //入库操作忽略该字段
    private OrderShipping orderShipping;
    //封装订单商品信息  一对多
    @TableField(exist = false)    //入库操作忽略该字段
    private List<OrderItem> orderItems;

    @TableId                        // 由于增长太快, 设置为自增会消耗大量的性能
    private String orderId;         // 订单号: 用户名+日期
    private String payment;
    private Integer paymentType;
    private String postFee;
    private Integer status;         // 分为好多个状态
    private Date paymentTime;
    private Date consignTime;
    private Date endTime;
    private Date closeTime;
    private String shippingName;
    private String shippingCode;
    private Long userId;
    private String buyerMessage;
    private String buyerNick;
    private Integer buyerRate;

}